<?php
/**
 * description...
 * 
 * @author Administrator
 * @category Project
 * @copyright Copyright(c) 2012 
 * @version $Id$
 */

/**
 * description...
 * 
 * @author Administrator
 * @category  
 * @package DnException
 */
class DnException extends Exception
{
	public static function ThrowOn($flag,$message,$code=0)
	{
		$class=__CLASS__;
		if($flag){
			throw new $class($message,$code);
		}
	}
}